﻿using System;
using System.Collections.Generic;
using System.ServiceModel.Description;
using System.Text;

namespace HTTPGetUtility
{
    class HttpGetEndpointBehavior : IEndpointBehavior
    {
        public void AddBindingParameters(ServiceEndpoint serviceEndpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters)
        {

        }

        public void ApplyClientBehavior(ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.ClientRuntime behavior)
        {
            //Add the inspector  
            behavior.MessageInspectors.Add(new HttpGetClientMessageInspector());
        }

        public void ApplyDispatchBehavior(ServiceEndpoint serviceEndpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher)
        {

        }

        public void Validate(ServiceEndpoint serviceEndpoint)
        {
            
        }
    }



}
